package com.example.scenictourback.repository;

import com.example.scenictourback.entity.ScenicArea;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScenicAreaRepository extends JpaRepository<ScenicArea, Integer> {
    
    List<ScenicArea> findByStatus(Integer status);
    
    List<ScenicArea> findByNameContaining(String name);
    
    Long countByStatus(Integer status);
} 